package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/4/2 15:01
 * @since v1.0
 */
@Getter
public enum AmountFlagEnum {

    /**
     * 数字字段为金额类型，1：是；0：不是
     */
    NO(0, "enum.amountFlag.memo.no"),
    YES(1, "enum.amountFlag.memo.yes"),
    ;

    private Integer type;

    private String memo;

    AmountFlagEnum(Integer type, String memo) {
        this.type = type;
        this.memo = memo;
    }

    public String getMemo() {
        return I18nMessageUtil.getMessage(memo);
    }
}
